<!DOCTYPE html>
<html>
<head>
    <title>测试swoole</title>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div>
    <h2 id="dd">{$name}</h2>
</div>

</body>
</html>

<script>
    $(function () {
        $('#dd').css("font-size","12px");
        $('#dd').css("background","red");
    });

</script>